﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Aspose.Words;
using System.IO;
namespace Zero
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void axToolbarControl1_OnMouseDown(object sender, ESRI.ArcGIS.Controls.IToolbarControlEvents_OnMouseDownEvent e)
        {

        }

        private void bt_Export_word_Click(object sender, EventArgs e)
        {
            
            Document doc = new Document("E:/i/大三下/组件式GIS开发/kc.docx");
            DocumentBuilder builder = new DocumentBuilder(doc);
            BookmarkCollection bookmark = doc.Range.Bookmarks;
            int num = bookmark.Count;
            string ber = num.ToString();
            MessageBox.Show(ber);
            builder.MoveToBookmark("white");
            builder.Writeln("ssss");
            doc.Save(@"E:/xd.docx");
            MessageBox.Show(bookmark[0].Name);

            Form2 form2 = new Form2();
            form2.ShowDialog();
            


            

            
        }

        private void attributetable_Click(object sender, EventArgs e)
        {
            Form3 form3 = new Form3();
            form3.ShowDialog();
        }
    }
}